<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>伪类选择器</title>
	<style>
		.container p:first-child {
			font-size: 20px;
			color: #990060;
		}

		.container p:nth-child(odd) {
			background: #ddd;
		}

		.container p:nth-child(3) {
			font-weight: bold;
			color: blue;
			font-size: 40px;
		}

		.container p:nth-last-of-type(1) {
			color: yellow;
		}

		.container p:last-child {
			font-weight: bold;
			color: blue;
			font-size: 40px;
		}
	</style>
</head>
<body>
	<div class="container">
		<p>line-1</p>
		<p>line-2</p>
		<p>line-3</p>
		<div>divline-4</div>
	</div>

	<ul>
			<li>南无武艺观世音菩萨1</li>
			<li>南无武艺观世音菩萨2</li>
			<li>南无武艺观世音菩萨3</li>
			<li>南无武艺观世音菩萨4</li>
			<li>南无武艺观世音菩萨5</li>
		</ul>
</body>
</html>